package FrameN;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import net.miginfocom.swing.MigLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.SwingConstants;
import java.awt.FlowLayout;


public class FNNhaPhanPhoi extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JLabel lblSTiKhon;
	private JTextField textField_6;
	private JLabel lblNgnHng;
	private JComboBox comboBox;
	private JPanel panel;
	private JButton btnNewButton;
	private JButton btnNewButton_1;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					FNNhaPhanPhoi frame = new FNNhaPhanPhoi();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public FNNhaPhanPhoi() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 483, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new MigLayout("", "[][grow][][grow]", "[30][30][30][30][30][30][grow]"));
		
		JLabel lblMKh = new JLabel("Mã NPP:");
		contentPane.add(lblMKh, "cell 0 0,alignx trailing");
		
		textField = new JTextField();
		contentPane.add(textField, "cell 1 0,growx");
		textField.setColumns(10);
		
		JLabel lblTnKh = new JLabel("Tên NPP: ");
		contentPane.add(lblTnKh, "cell 2 0,alignx trailing");
		
		textField_1 = new JTextField();
		contentPane.add(textField_1, "cell 3 0,growx");
		textField_1.setColumns(10);
		
		JLabel lblaCh = new JLabel("Địa Chỉ:");
		contentPane.add(lblaCh, "cell 0 1,alignx trailing");
		
		textField_2 = new JTextField();
		contentPane.add(textField_2, "cell 1 1 3 1,growx");
		textField_2.setColumns(10);
		
		JLabel lblPhone = new JLabel("Phone:");
		contentPane.add(lblPhone, "cell 0 2,alignx trailing");
		
		textField_3 = new JTextField();
		contentPane.add(textField_3, "cell 1 2,growx");
		textField_3.setColumns(10);
		
		JLabel lblFax = new JLabel("Fax:");
		contentPane.add(lblFax, "cell 2 2,alignx trailing");
		
		textField_4 = new JTextField();
		contentPane.add(textField_4, "cell 3 2,growx");
		textField_4.setColumns(10);
		
		JLabel lblEmail = new JLabel("Email:");
		contentPane.add(lblEmail, "cell 0 3,alignx trailing");
		
		textField_5 = new JTextField();
		contentPane.add(textField_5, "cell 1 3,growx");
		textField_5.setColumns(10);
		
		lblSTiKhon = new JLabel("Số Tài khoản:");
		contentPane.add(lblSTiKhon, "cell 0 4,alignx trailing");
		
		textField_6 = new JTextField();
		contentPane.add(textField_6, "cell 1 4 2 1,growx");
		textField_6.setColumns(10);
		
		lblNgnHng = new JLabel("Ngân Hàng:");
		contentPane.add(lblNgnHng, "cell 0 5,alignx trailing");
		
		comboBox = new JComboBox();
		contentPane.add(comboBox, "cell 1 5,growx");
		
		panel = new JPanel();
		FlowLayout flowLayout = (FlowLayout) panel.getLayout();
		flowLayout.setAlignment(FlowLayout.RIGHT);
		contentPane.add(panel, "cell 3 6,grow");
		
		btnNewButton = new JButton("OK");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		panel.add(btnNewButton);
		
		btnNewButton_1 = new JButton("Cancel");
		btnNewButton_1.setHorizontalAlignment(SwingConstants.RIGHT);
		btnNewButton_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		panel.add(btnNewButton_1);
	}

}
